MESSAGE("Android NDK root is \"$ENV{ANDROID_NDK_ROOT}\"")

set(CMAKE_C_FLAGS "-march=armv5te -O3 -mtune=xscale -ffast-math -funroll-all-loops -fno-trapping-math -fpic -mthumb-interwork -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -fno-exceptions -fno-rtti")

add_definitions(-D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -DANDROID)

